﻿
namespace Admin.NET.Application.Service;

/// <summary>
/// 通用操作记录
/// </summary>
public class OptXueYeService : BaseService<OptXueYe>
{
    public OptXueYeService(IServiceScopeFactory scopeFactory) : base(scopeFactory)
    {
    }

    /// <summary>
    /// 获取列表
    /// </summary>
    public async Task<SqlSugarPagedList<OptXueYe>> Page(OptXueYePageInput input)
    {
        return await Queryable
           .WhereIF(input.kuCunId > 0, it => it.kuCunId == input.kuCunId)
           .ToPagedListAsync(input.Page, input.PageSize);
    }
}
